EmrtdReader

open class EmrtdReader

Handles an eMRTD Session from start to finish in accordance to ICAO Doc 9303.

- Initialize with a StepProgressListener to get notified about the current step and file read progress.

- Provide a Master List to readMasterList to verify the eMRTD.

- Use readAndVerify or read to access the eMRTD and return a EmrtdResult.

Constructors

Link copied to clipboard
constructor(stepProgressListener: EmrtdReader.StepProgressListener)
Initialize an EmrtdReader.
constructor()
Initialize an EmrtdReader without providing an StepProgressListener implementation.

Types

Link copied to clipboard
eMRTD Session was not successful.
Link copied to clipboard
Enum cases of the individual steps during an eMRTD session.
Link copied to clipboard
Listener to listen to the current step and current progress during an eMRTD Session.

Properties

Link copied to clipboard
open val tracer: Tracer

Functions

Link copied to clipboard
open fun read(isoDep: IsoDep, can: String): EmrtdResult
open fun read(isoDep: IsoDep, documentNumber: String, dateOfBirth: String, dateOfExpiry: String): EmrtdResult
Read an eMRTD.
Link copied to clipboard
open fun readAndVerify(isoDep: IsoDep, can: String): EmrtdResult
open fun readAndVerify(isoDep: IsoDep, documentNumber: String, dateOfBirth: String, dateOfExpiry: String): EmrtdResult
Read and verify an eMRTD.
Link copied to clipboard
open fun readMasterList(masterListFileInputStreams: Array<InputStream>)
Read one or multiple MasterList file(s) from the given InputStream(s).
Link copied to clipboard
open fun setTracerProvider(tracerProvider: TracerProvider)
Sets a OpenTelemetry tracer provider that is used to provide traces.